#ifndef DBGRID_H
#define DBGRID_H

#include <wx/grid.h>
#include "doubleball.h"

const static int coubles[]=
//01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33
 {10,20,30,-1,-1,-1,-1,-1,-1,01,-1,21,31,-1,-1,-1,-1,-1,-1,02,12,-1,32,-1,-1,-1,-1,-1,-1,03,13,23,-1};

class DBGrid : public wxGrid
{
    public:
        static doubleball LAST_TERM;//最后一期记录
        DBGrid();
        DBGrid(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxWANTS_CHARS, const wxString& name = wxPanelNameStr);
        virtual ~DBGrid();
 //custom function
 void  GridEditEvtHandler(wxGridEvent& ev);

    protected:
    void OnKeyDown(wxKeyEvent &event);
    private:
DECLARE_EVENT_TABLE();
};

#endif // DBGRID_H
